package com.fanbuchi.app.ins.dialog;

import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.fanbuchi.app.ins.R;

/**
 * Created by win7 on 2016/5/27.
 */
public class LoadingDialog extends android.support.v4.app.DialogFragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.dialog_loading,container,false);
        return view;
    }

  /*  public Dialog onCreateDialog(Bundle savedInstanceState) {
        if (savedInstanceState!=null){
            savedInstanceState.get("");
        }
        final Dialog dialog  = new Dialog(getActivity(),R.style.loadingDialog);

        ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(120,120);
        LoadingView loadingView = new LoadingView(getActivity());
        loadingView.setLayoutParams(params);
        dialog.setContentView(loadingView);
        dialog.setCanceledOnTouchOutside(true);
        dialog.setCancelable(true);

        return dialog;
    }*/

}
